package a.j;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.e;
import a.c.m;
import a.c.w;
import a.d.u;
import a.j.a.b;
import a.j.a.j;

import java.awt.geom.Rectangle2D;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

class we
{
  private Map a;
  
  void a(g paramg, e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    this.a = null;
    j localj = paramg.K();
    if ((bool2) || (localj != null))
    {
      e locale = localj.p(parame);
      do
      {
        if (locale == null) {
          break;
        }
        if (!bool2) {
          if (this.a == null) {
            this.a = new LinkedHashMap();
          }
        }
        this.a.put(locale, paramg.w(locale).O());
        locale = localj.p(locale);
      } while (!bool1);
    }
  }
  
  void a(g paramg)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if ((bool2) || (this.a != null))
    {
      Iterator localIterator = this.a.entrySet().iterator();
      do
      {
        do
        {
          Map.Entry localEntry;
          b localb;
          do
          {
            if (!localIterator.hasNext()) {
              break;
            }
            localEntry = (Map.Entry)localIterator.next();
            ld localld = paramg.w((e)localEntry.getKey());
            localb = localld.K();
          } while (localb == null);
          Rectangle2D localRectangle2D1 = (Rectangle2D)localEntry.getValue();
          Rectangle2D localRectangle2D2 = localb.f();
          double d1 = Math.max(0.0D, localRectangle2D2.getX() - localRectangle2D1.getX());
          double d2 = Math.max(0.0D, localRectangle2D2.getY() - localRectangle2D1.getY());
          double d3 = Math.max(0.0D, localRectangle2D1.getMaxX() - localRectangle2D2.getMaxX());
          double d4 = Math.max(0.0D, localRectangle2D1.getMaxY() - localRectangle2D2.getMaxY());
          localb.a(new u(d2, d1, d4, d3));
        } while (bool2);
      } while (!bool1);
    }
  }
  
  void a()
  {
    this.a = null;
  }
  
  void c(g paramg, e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    bb localbb = new bb(parame);
    j localj = paramg.K();
    if ((bool2) || (localj != null))
    {
      e locale = localj.p(parame);
      do
      {
        if (locale == null) {
          break;
        }
        localbb.add(locale);
        locale = localj.p(locale);
        if ((!bool2) && (bool1)) {
          return;
        }
      } while (!bool1);
    }
    if (!bool2) {
      paramg.a(localbb.l());
    }
  }
  
  void a(g paramg, d paramd)
  {
    paramg.a(new ab(paramd).l());
  }
  
  void a(pg parampg, hg paramhg)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramhg instanceof jg)) {
        a(parampg, ((jg)paramhg).gb());
      }
    }
    if ((bool) || ((ld.D) && ((paramhg instanceof ig)))) {
      a(parampg, ((ig)paramhg).lb());
    }
  }
  
  void a(pg parampg, e parame)
  {
    a(parampg, new bb(parame).l(), null);
  }
  
  void a(pg parampg, d paramd)
  {
    a(parampg, null, new ab(paramd).l());
  }
  
  void a(pg parampg, w paramw, m paramm)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    g localg = parampg.a();
    localg.b((byte)1);
    if (((bool2) || (paramw != null)) && (paramw.e()))
    {
      j localj = localg.K();
      if (localj == null) {
        do
        {
          if (!paramw.e()) {
            break;
          }
          localg.w(paramw.d()).a((byte)0);
          paramw.f();
          if ((!bool2) && (bool1)) {
            return;
          }
        } while (!bool1);
      }
      HashSet localHashSet = new HashSet();
      if (!bool2)
      {
        localHashSet.add(null);
        label191:
        label193:
        do
        {
          do
          {
            if (!paramw.e()) {
              break label196;
            }
            e locale = paramw.d();
            do
            {
              if (!localHashSet.add(locale)) {
                break;
              }
              localg.w(locale).a((byte)0);
              locale = localj.p(locale);
              if (bool2) {
                break label193;
              }
              if (bool1) {
                break label191;
              }
            } while (!bool1);
          } while (bool2);
          paramw.f();
        } while (!bool1);
      }
    }
    else
    {
      label196:
      if ((!bool2) && (paramm == null)) {
        break label264;
      }
    }
    if ((bool2) || (paramm.e())) {
      if (paramm.e())
      {
        localg.t(paramm.a()).a((byte)0);
        paramm.f();
      }
    }
    for (;;)
    {
      if ((bool2) || (!bool1))
      {
        if (!bool1) {
          break;
        }
        label264:
        if (!bool2) {
          parampg.e(3);
        }
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.we

 * JD-Core Version:    0.7.0.1

 */